import request from '@/utils/request'

const api_name = '/admin/minio/file'

export default {

  upload(searchObj) {
        return request({
            url: `${api_name}/upload`,
            method: `post`,
            data: searchObj
        })
    },
    // 请求中获取数据
    upload_two(searchObj) {
        return request({
          url: `${api_name}/upload_two`,
          method: `post`,
          data: searchObj
        })
      },
      remove(name) {
        return request({
          url: `${api_name}/remove`,
          method: `post`,
          data: name
        })
      },
// 根据本地图片的地址批量上传
      uploadByURL(searchObj) {
        return request({
          url: `${api_name}/uploadByUrls`,
          method: `post`,
          data: searchObj
        })
      },
}